﻿@model SportMeetingPlanner.Models.User
@{
    ViewBag.Title = "Delete User";
}
<div class="section">
    <table cellspacing="0" class="listTable">
        <tr>
            <td class="headerColumn" colspan="2">
                Delete user
            </td>
        </tr>
        <tr>
            <td>
                <br />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="leftColumn" colspan="2">
                Delete @Model.UserName?
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Name
            </td>
            <td>
                @Html.DisplayFor(model => model.UserName)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                First name
            </td>
            <td>
                @Html.DisplayFor(model => model.FirstName)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Last name
            </td>
            <td>
                @Html.DisplayFor(model => model.LastName)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                E-Mail
            </td>
            <td>
                @Html.DisplayFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Tel Nr
            </td>
            <td>
                @Html.DisplayFor(model => model.TelephoneNumber)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Admin
            </td>
            <td>
                @Html.DisplayFor(model => model.IsAdmin)
            </td>
        </tr>
        <tr>
            <td>
                <br />
            </td>
            <td>
            </td>
        </tr>
        <tr class="link">
            <td class="leftColumn" colspan="2">
                @using (Html.BeginForm("Delete", "UserManager"))
                {
                    @Html.HiddenFor(m => m.UserName)
                    <input type="submit" value="Delete" />
                }
            </td>
        </tr>
        <tr class="back">
            <td class="leftColumn" colspan="2">
                @Html.ActionLink("Back", "Index")
            </td>
        </tr>
    </table>
</div>
